import type { Question } from '@/types/exam';
import { javaQuestions } from './java/index';
import { sqlQuestions } from './sql/index';
import { vueQuestions } from './vue';
import { typescriptQuestions } from './typescript';
import { javascriptQuestions } from './javascript';
import { pythonQuestions } from './python';

/**
 * 所有题目数据（按技术分类）
 */
const questionsMap: Record<string, Question[]> = {
	'java': javaQuestions,
	'sql': sqlQuestions,
	'vue': vueQuestions,
	'typescript': typescriptQuestions,
	'javascript': javascriptQuestions,
	'python': pythonQuestions
};

/**
 * 导出所有题库数据
 */
export { javaQuestions } from './java/index';
export { sqlQuestions } from './sql/index';
export { vueQuestions } from './vue';
export { typescriptQuestions } from './typescript';
export { javascriptQuestions } from './javascript';
export { pythonQuestions } from './python';

/**
 * 导出题目数据映射（供services使用）
 */
export { questionsMap };

